random string php

44

Generate Random String in PHP -

phpCopy<?php 
$Random_str = uniqid();  
echo "Random String:", $Random_str, "\n";
?> 

random string php -

<?php 
    $random = substr(md5(mt_rand()), 0, 7);
    echo $random;
?>

Comments

Submit
0 Comments